﻿HmJS.$Import('ui.calendar.DatePicker');
//HmJS.$Import('core.domready');

HmJS.register('demo.module.ui.calendar.datepicker.locale', function ($ns) {
	var that = {};

	that.todo = function () {
		Locale.use('cn-ZH');

		var Picker = $ns.ui.Picker;

		myPicker = new Picker.Date('locale', {
			timePicker: true
		});

		myPicker2 = new Picker.Date('abbr', {
			months_abbr: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
			days_abbr: ['日', '一', '二', '三', '四', '五', '六']
		});

		myPicker3 = new Picker.Date('titles', {
			timePicker: true,
			years_title: function () {
				return 'Pick your year';
			},
			months_title: function () {
				return 'Pick your month';
			},
			days_title: function () {
				return 'Pick your day';
			},
			time_title: function () {
				return 'Pick the time';
			}
		});
	};

	return that;
});
